import Layout from '@/layout'

export default {
  path: '/car',
  component: Layout,
  redirect: '/car/area',
  name: 'Car',
  meta: { title: '行车管理', icon: 'el-icon-guide' },
  children: [
    {
      path: 'area',
      component: () => import('@/views/car/area/index'),
      meta: { title: '区域管理' }
    },
    {
      path: 'card',
      component: () => import('@/views/car/card/index'),
      meta: { title: '月卡管理' }
      // children: [
      //   {
      //     path: '/card/addMonthCard/:id?/:type?',
      //     name: 'addMonthCard',
      //     component: () => import('@/views/car/card/components/addMonthCard.vue'),
      //     hidden: true
      //   }
      // ]
    },

    {
      path: 'payparking',
      component: () => import('@/views/car/pay-parking/index'),
      meta: { title: '停车缴费管理' }
    },

    {
      path: 'payrules',
      component: () => import('@/views/car/pay-rules/index'),
      meta: { title: '计费规则管理' }
    }
  ]
}
